const mongoose =require('mongoose')
const userSchema = new mongoose.Schema({
    name: {
        type:String,
        required: true
    },
    age: {
        type: Number,
        max: 80,
        min: 8
    },
    password: Number,
    email: String,
    hobbies: [String]
});
const User = mongoose.model('User',userSchema)
module.exports = User;